﻿/// <reference path="GMAPJS/GMapJSHelper.js" />

function initialize()
{
    //alert("toto");
    //var opt =new GMapOptions();
    //var opt = {size:null};
//    opt.size = new GSize(600, 200);
//    var map = new GMap2(document.getElementById("myMap"), opt);
//    map.setCenter(new GLatLng(47, 3.3), 4);

    if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("myMap"));
        map.setCenter(new GLatLng(47.2, 3.3), 4);
    }

    //var r = new GRoute();
    
    
    
    
//    -- Style -- 
//    document.getElementById("myMap").childNodes[1].style.visibility = "hidden";
//    document.getElementById("myMap").childNodes[2].style.visibility = "hidden";
//    var mapRef = document.getElementById("myMap");
//    mapRef.childNodes[2].style.left = "5px";
//    mapRef.childNodes[2].style.top = "5px";    
//    
//    mapRef.childNodes[1].style.width = "100%";
//    mapRef.childNodes[1].style.textAlign = "center";
//    mapRef.childNodes[1].style.right = "0px;"
//    mapRef.childNodes[1].style.bottom = "0px;"
//    mapRef.childNodes[1].style.zIndex = "999";
//    
//    var legendBack = document.createElement("div");
//    mapRef.childNodes[1].appendChild(legendBack);    
//    legendBack.style.position = "absolute";
//    legendBack.style.top = "0px";
//    legendBack.style.width = "100%";
//    legendBack.style.height = "100%";
//    legendBack.style.opacity = "0.65";    
//    legendBack.style.backgroundColor = "white";   
//    legendBack.style.zIndex = "-1"; 
}